import React from 'react';
import DBTable from 'components/DBTable';
import ImageManageInnerTable from './ImageManageInnerTable.js';
import Logger from '../../../utils/Logger';
import {
  Form,
  Input,
  Row,
  Col,
  Button,
  DatePicker,
  Select,
  Icon,
  Radio,
  InputNumber,
  Checkbox,
  message,
  Upload,
  notification
} from 'antd';

const logger = Logger.getLogger('ImageManage');
/**
 * 操作数据库中的一张表的组件, 又可以分为3个组件: 表单+表格+分页器
 */
class ImageManage extends DBTable {

  // 代替componentWillMount
  constructor(props) {
    super(props);
  }

  handleResult = (result) => {
    result.data.list.forEach(function(obj) {
      obj.keysk = obj.key;
      delete obj.key;
    }, this);
    return result;
  }

  createInnerTable()
  {
    return ImageManageInnerTable;
  }
}

export default ImageManage;
